<script>
	import {
		mapActions
	} from 'vuex'
	export default {
		onLaunch: function() {
			// 获取本地缓存中的用户id并获取用户信息
			let UserInfoNid = uni.getStorageSync('UserInfoNid')
			if (UserInfoNid) {
				this.GetUserInfo(UserInfoNid)
			}
			this.task()
		},
		onShow: function() {
			// console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		},
		methods: {
			...mapActions(['GetUserInfo','task'])
		}
	}
</script>

<style>
	/*每个页面公共css */
	page {
		height: calc(100% - 40rpx);
		width: calc(100% - 40rpx);
		background-color: #161616;
		padding: 20rpx;
	}

	text {
		color: #fff;
	}
</style>
